package com.all.play.myadaptertoadapter;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;

import com.all.play.myadaptertoadapter.activity.FirstActivity;
import com.all.play.myadaptertoadapter.activity.SecondActivity;
import com.all.play.myadaptertoadapter.fakefata.ResaultData;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        String data = ResaultData.data;
        Log.i("wert", "initView: "+data);
    }


    public void One(View view){
        startActivity(new Intent(this, FirstActivity.class));
    }
    public void Two(View view){
        startActivity(new Intent(this, SecondActivity.class));
    }
}
